package org.xb.FactoryMethod;

/**
 * @Author
 * @Description
 * @Date created in 15:20 2023/11/29
 */
public class Operate {
    private Double number1;
    private Double number2;
    private String operate;

    public Double getNumber1() {
        return number1;
    }

    public void setNumber1(Double number1) {
        this.number1 = number1;
    }

    public Double getNumber2() {
        return number2;
    }

    public void setNumber2(Double number2) {
        this.number2 = number2;
    }

    public String getOperate() {
        return operate;
    }

    public void setOperate(String operate) {
        this.operate = operate;
    }

    public Operate(Double number1, Double number2, String operate) {
        this.number1 = number1;
        this.number2 = number2;
        this.operate = operate;
    }

    public Operate() {
    }

    @Override
    public String toString() {
        return "Calculator{" +
                "number1=" + number1 +
                ", number2=" + number2 +
                ", operate='" + operate + '\'' +
                '}';
    }
}
